package com.example.yin.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.yin.common.R;
import com.example.yin.model.domain.Collect;
import com.example.yin.model.request.CollectRequest;
/**
 * @author czh
 * @description 针对表【collect】的数据库操作Service
 * @createDate 2023-07-18 13:13:42
 */
public interface CollectService extends IService<Collect> {
//    添加收藏
    R addCollection(CollectRequest addCollectRequest);
//    判断歌曲是否被收藏
    R existSongId(CollectRequest isCollectRequest);
//    取消收藏
    R deleteCollect(Integer userId, Integer songId, Integer num);
//    返回指定用户的收藏列表
    R collectionOfUser(Integer userId,Integer num);
//    返回指定用户的收藏列表数
    R collectionCountOfUser(Integer userId);
}
